package jam.network.message;

import jam.network.*;
import jam.model.*;

/**
 * Class to create a request for a users info
 */
public class ClientRequestUserInfo extends ClientMessage {

	protected String message;

	/**
	 * Constructor, builds the string to be sent over network
	 */
	public ClientRequestUserInfo( String email ) {
		super(NetworkController.getTransID() );
		int transID = NetworkController.getTransID();
		message = ("CR_USERINFO:" + transID + ":" + email);
		NetworkController.sent.put( transID, message );
		NetworkController.setTransID();
	}

	/**
	 * toString method.
	 *
	 * @returns the message to be sent across the network
	 */
	public String toString() {
		return message;
	}

}
